<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var rightpwd="34edf34";
			var inputpwd=prompt("请您输入密码：");
			while(inputpwd!=rightpwd){
				alert("您输入的密码有误！");
				inputpwd=prompt("请您输入密码：");
			}alert("登录成功！")
		</script>
	</body>
</html>
